home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 1
/
CU Amiga Magazine CD-ROM Special Edition (1995)(EMAP Images)(GB)[Issue 1995-11].iso
/
Aminet
/
comm
/
tcp
/
archie38_1.lha
/
archie-1.4
/
msdos
/
cutcp.h
next >
Wrap
C/C++ Source or Header
|
1995-01-04
|
1KB
|
34 lines
/* cutcp.h -- defs for cutcp code */
int netlisten(unsigned int port);
struct machinfo *Shostlook(char *name);
int Sdomain(char *name);
struct machinfo *Sgethost(char *name);
struct machinfo *Slookip(unsigned long *address);
void netgetftp(unsigned int array[], unsigned int port);
int netopen(unsigned long *address, unsigned int port);
int Snetopen(struct machinfo *m, unsigned int port);
int netqlen(int handle);
int netroom(int handle);
int netread(int pnum, unsigned char *buffer, unsigned int n);
int netwrite(int pnum, unsigned char *buffer, unsigned int n);
int netest(int pnum);
int netpush(int pnum);
void netulisten(unsigned int portnum);
int netusend(unsigned long *address, unsigned destport,
unsigned sourceport, unsigned char *buffer, int count);
int neturead(unsigned char *buffer);
struct machinfo *Slooknum(int pnum);
int Snetinit();
int Shostfile(char *name);
int netshut();
int Sgetevent(int classes, int *clss, int *data);
int netclose(int pnum);
unsigned int intswap(unsigned int val);
unsigned long n_clicks(void *p);
void Stask();
#define ntohs(a) (intswap(a))
#define htons(a) (intswap(a))